<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $orderId=$_REQUEST['orderId'];
        $goodsId=$_REQUEST['goodsId'];
        $shopId=$_REQUEST['shopId'];
        $way='0';
        if(isset($_REQUEST['way'])) $way=$_REQUEST['way'];
		$sql="select * from `".$oto."_goods_appraises` where `userId`='".$user_id."' and orderId='{$orderId}' and goodsId='{$goodsId}' and shopId='{$shopId}'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$appraises_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if($way=='ios')
		{
			if(isset($appraises_info)) echo json_encode($appraises_info);
			else echo '[]';
		}
		else echo json_encode($appraises_info);
?>